package top.raoqq.sky;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.password.PasswordEncoder;

import javax.annotation.Resource;

/**
 * @author 饶奇奇
 * @date 2023/8/3
 */
@SpringBootTest
public class PasswordGenerater {
    @Resource
    private PasswordEncoder passwordEncoder;

    @Test
    public void test() {
        System.out.println("密码是" + passwordEncoder.encode("123456"));
    }
}
